MPI_COMPILE_FLAGS = $(shell mpicc --showme:compile)
MPI_LINK_FLAGS = $(shell mpicc --showme:link)

MY_APP=main_teste_jairo
T2=t2
CC=mpicc
RUN=mpirun

all: $(MY_APP).c t2
	$(CC) $(MY_APP).c -o $(MY_APP) t2.o

t2:
	$(CC) -c $(T2).c

clean:
	rm $(MY_APP) *.o











##	$(CC) -c $(T2).c $(MPI_LINK_FLAGS)
# $(MPI_COMPILE_FLAGS) $(MY_APP).c $(MPI_LINK_FLAGS) -o $(MY_APP)
# mpic++ <nome_do_codigo> <flags>
#        mpirun -np <nro_de_processos> <nome_do_programa>


#mpicc -c t2.c
#mpicc main_teste_jairo.c -o main_teste_jairo t2.o
